package cn.javasm.web;

import cn.javasm.entity.Inbound;
import cn.javasm.entity.Outbound;
import cn.javasm.service.InboundService;
import cn.javasm.service.OutboundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author:27chen
 * @className:InboundController
 * @dat:2023/10/24 10:32
 * @version:0.1
 * @since:jdk11
 */
@RestController
@RequestMapping("outbound")
public class OutboundController {

    @Autowired
    private OutboundService outboundService;

    @GetMapping
    public List<Outbound> outboundList(){
        return  outboundService.AllboundList();
    }

}
